package vip.ifmm.lehouse.mq.service.utils;

import java.util.Random;

/**
 * 随机工具
 *
 * @author Red
 * email: 1318944013@qq.com
 * date: 2019/6/18 21:08
 */
public class RandomUtil {

    private static final Random ra =new Random();

    // 随机1~max的数
    public static int randomNumber(int max) {
        return ra.nextInt(max)+1;
    }

    public static void main(String[] args) {
        System.out.println(randomNumber(16));
    }
}
